To begin, let’s explore the function we created to run all of this statistical analysis:
mysubsetMDS <- function(x){
mysubset <- df %>%
select(starts_with(x))
meta <- metaMDS(mysubset)
MDS_df <- data.frame(MDS1=meta$points[,1],MDS2=meta$points[,2]) %>%
cbind(demo)
return(MDS_df)
}
In English, this function allows us to run the MDS according to each subset of demographic and each subset of question type that we want. Obviously, in this page, we are exploring Majors.
Let’s explore the science identity subset of questions first. Running our function we created and plotting it, we are left with this image of the plot:
This is great and all, but let’s run an adonis test to see if there is a significant difference in how different majors responded to science identity questions:
##
## Call:
## adonis(formula = si ~ demo$major)
##
## Permutation: free
## Number of permutations: 999
##
## Terms added sequentially (first to last)
##
## Df SumsOfSqs MeanSqs F.Model R2 Pr(>F)
## demo$major 8 0.8771 0.109636 3.6695 0.08833 0.002 **
## Residuals 303 9.0528 0.029877 0.91167
## Total 311 9.9299 1.00000
## ---
## Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Look at that! It was significant!
Next, let’s look into Carer Motivation:
And an Adonis test:
##
## Call:
## adonis(formula = cm ~ demo$major)
##
## Permutation: free
## Number of permutations: 999
##
## Terms added sequentially (first to last)
##
## Df SumsOfSqs MeanSqs F.Model R2 Pr(>F)
## demo$major 8 0.4423 0.055290 1.0885 0.02794 0.336
## Residuals 303 15.3905 0.050794 0.97206
## Total 311 15.8329 1.00000
This shows that the differences in answers are not significant, according to major.
Now, Intrinsic Motivation:
And an Adonis test:
##
## Call:
## adonis(formula = im ~ demo$major)
##
## Permutation: free
## Number of permutations: 999
##
## Terms added sequentially (first to last)
##
## Df SumsOfSqs MeanSqs F.Model R2 Pr(>F)
## demo$major 8 0.3414 0.042676 1.5266 0.03874 0.149
## Residuals 303 8.4705 0.027955 0.96126
## Total 311 8.8119 1.00000
This shows that the differences in answers are not significant, according to major.
Now, Self-Determination:
And an Adonis test:
##
## Call:
## adonis(formula = sd ~ demo$major)
##
## Permutation: free
## Number of permutations: 999
##
## Terms added sequentially (first to last)
##
## Df SumsOfSqs MeanSqs F.Model R2 Pr(>F)
## demo$major 8 0.1709 0.021358 0.86911 0.02243 0.514
## Residuals 303 7.4460 0.024574 0.97757
## Total 311 7.6168 1.00000
This shows that the differences in answers are not significant, according to major.
Now, Self-Efficacy:
And an Adonis test:
##
## Call:
## adonis(formula = se ~ demo$major)
##
## Permutation: free
## Number of permutations: 999
##
## Terms added sequentially (first to last)
##
## Df SumsOfSqs MeanSqs F.Model R2 Pr(>F)
## demo$major 8 0.3163 0.039543 1.463 0.03719 0.169
## Residuals 303 8.1896 0.027028 0.96281
## Total 311 8.5059 1.00000
This shows that the differences in answers are not significant, according to major.